package ink.onei.shopping.domain;

import ink.onei.user.domain.Client;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.TreeEntity;
import org.apache.ibatis.type.Alias;

import java.io.Serial;

/**
 * 商品评论对象 goods_comment
 * 
 * @author nekotako
 * @date 2024-02-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("Comment")
public class Comment extends TreeEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    // 评论编号
    private Long commentId;

    // 规格编号
    @Excel(name = "规格编号")
    private Long detailId;

    // 客户编号
    @Excel(name = "客户编号")
    private Long clientId;

    // 评论内容
    @Excel(name = "评论内容")
    private String comment;

    // 删除标记
    private Integer delFlag;

    // 商品信息
    private Goods goods;

    // 规格信息
    private Detail detail;

    // 客户信息
    private Client client;
}
